package com.itheima.health.dao;

import com.github.pagehelper.Page;
import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface MemberDao {


    Member findMemberByTelephone(String telephone);

    void add(Member member);

    Integer findMemberCountsByRegTime(String regTime);

    Integer findTodayNewMember(String today);

    Integer findTotalMember();

    Integer findThisNewMember(String date);

    Integer findMemberCountsBetweenRegTime(String startStr, String s);

    //下方为会员页面数据展示
    List<Map> findMemberSexCount();

    Integer findMemberAgeCountByBirthday(@Param("begin") String targetYear, @Param("end") String thisYear);

    Integer findMemberCountByBirthdayUp(String targetYear);

    Page<Member> findPage(String queryString);

    Member findById(Integer id);

    void edit(Member member);

    Integer findOrderCountByMemberId(Integer id);

    void deleteById(Integer id);
}
